package com.ruoyi.yljf.domain.vo;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.ruoyi.common.utils.bean.BeanUtils;
import com.ruoyi.yljf.domain.Comment;
import com.ruoyi.yljf.domain.Question;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionVO {

    /** 试题id */
    private Long id;

    /** 该题用户是否做过  true：做过  false：未做过 */
    private boolean isComplete;

    /** 当该题做过用户的选项 */
    private String userOption;

    /** 题目类型：单选/多选 */
    private String questionType;

    /** 题目问题内容 */
    private String questionTitle;

    /** 选项 */
//    private Map<String, String> questionOptions;
    private String questionOptions;

    /** 正确选项 */
    private String correctAnswer;

    /** 易错选项 */
    private String errorAnswer;

    /** 正确率 */
    private String ac;

    /** 解析 */
    private String questionText;

    public QuestionVO(Question question){
        BeanUtils.copyProperties(question, this);
    }
}
